Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: add default retry rule for Armeria client in End-to-end tests #375

Merged
merged 1 commit into from
Oct 6, 2021

Conversation

chenqi0805
Copy link
Collaborator

@chenqi0805 chenqi0805 commented Oct 6, 2021

Signed-off-by: qchea [email protected]

Description

This change is to mitigate the flaky UnprocessedRequestException found in end-to-end tests.

Issues Resolved

#366 (mitigate)

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Clients.newClient(String.format("gproto+http://127.0.0.1:%d/", port),
TraceServiceGrpc.TraceServiceBlockingStub.class).export(request);
TraceServiceGrpc.TraceServiceBlockingStub client = Clients.builder(String.format("gproto+http://127.0.0.1:%d/", port))
.decorator(RetryingClient.newDecorator(RetryRule.failsafe()))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this change overall!

The documentation on this wasn't clear regarding how many times it tries. Is this limited?
If we are unsure as to the number of retries, we should be sure that the test itself has a JUnit @Timeout.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chenqi0805 chenqi0805 merged commit b3d1ff9 into opensearch-project:main Oct 6, 2021
@chenqi0805 chenqi0805 deleted the fix/retry-in-e2e branch October 6, 2021 21:18
jianghancn pushed a commit to jianghancn/data-prepper that referenced this pull request Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants